package vno.fux.ui
{
	import vno.sci.event.MonologEvent;
	import vno.fux.GlobalEventScheduler;
	import vno.fux.GlobalVar;
	import flash.events.Event;

	public class MessageWindowController extends BaseComponentController
	{
		public function MessageWindowController(model_:BaseComponentModel)
		{
			super(model_);
			GlobalEventScheduler.getInstance().addResizeListener(resizeHandler);
		}
		
		private function resizeHandler(event:Event):void
		{
			_model.pos.x = GlobalVar.stage.stageWidth/2;
			_model.pos.y = GlobalVar.stage.stageHeight/2;
			_model.update();
		}
	}
}